Skip to content

Enum union types#56

Open
corbanbrook wants to merge 2 commits intomasterfrom
enum-to-union-types
Open

Enum union types#56
corbanbrook wants to merge 2 commits intomasterfrom
enum-to-union-types

Conversation

@corbanbrook
Copy link

Adds an option -enum=union to convert enums into const objects with union types in order to support erasableSyntaxOnly

corbanbrook and others added 2 commits March 25, 2026 18:17
Support generating const objects with union types as an alternative to
TypeScript enums, for compatibility with erasableSyntaxOnly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant